package oa.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import oa.biz.MessageReceptionBiz;
import oa.entity.MessageReception;
import oa.mapper.MessageReceptionMapper;

@Service
public class MessageReceptionBizImpl implements MessageReceptionBiz{
	@Autowired
	private MessageReceptionMapper messagercpmapper;
	@Override
	public void MessageReceptionadd(MessageReception messagercp) {
		messagercpmapper.MessageReceptionadd(messagercp);
		
	}

	@Override
	public void MessageReceptiondelete(int messageid) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void MessageReceptionupdate(int isRead,int messageId,int receiverId) {
		 messagercpmapper.MessageReceptionupdate(isRead, messageId, receiverId);
		
	}

	@Override
	public MessageReception fetchByMessageId(int messageId) {
		
		return messagercpmapper.fetchByMessageId(messageId);
	}
	
}
